import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import HomePage from '@/components/HomePage'
import Classify from '@/components/Classify'
import StockOutKing from '@/components/D-goodsKing/StockOutKing'
import Goodsdetails from '@/components/D-goodsKing/Goodsdetails'
import Goodsname from '@/components/D-goodsKing/Goodsname'
import Fansdiscuss from '@/components/D-goodsKing/Fansdiscuss'
import ShoppingCart from '@/components/C-ShoppingCart/ShoppingCart'
import PersonalCenter from '@/components/G-person/PersonalCenter'
import FeelingEmpty from '@/components/F-FeelingEmpty/Emptyclassification/FeelingEmpty'
import Motherson from '@/components/F-HomePage/Motherson'
import Recommended from '@/components/F-HomePage/Recommended'
import Information from '@/components/G-person/person-information/person-information'
import Headportrait from '@/components/G-person/person-information/information-header'
import Nikename from '@/components/G-person/person-information/nike-name'
import Qrcode from '@/components/G-person/person-information/qr-code'
import Invitecode from '@/components/G-person/person-information/invite-code'
import Mobilephone from '@/components/G-person/person-information/mobile-phone'
import Lookorder from '@/components/G-person/person-lookorder/lookorder'
import Order from '@/components/G-person/person-lookorder/order'
import Unpaid from '@/components/G-person/person-lookorder/unpaid'
import Dropshipping from '@/components/G-person/person-lookorder/drop-shipping'
import Forthegoods from '@/components/G-person/person-lookorder/forthegoods'
import Thedeal from '@/components/G-person/person-lookorder/the-deal'
import AddNewAddress from '@/components/G-person/AddNewAddress/AddNewAddress'
import AddDeliveryAddress from '@/components/G-person/AddDeliveryAddress/AddDeliveryAddress'
import thiefwas from '@/components/F-HomePage/thiefwas'
import CsureOrder from '@/components/C-ShoppingCart/CsureOrder'
import food from '@/components/F-HomePage/food'
import search from '@/components/F-FeelingEmpty/search/search'
import settlement from '@/components/C-ShoppingCart/settlement'
import Shezhi from '@/components/G-person/shezhi/shezhi'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      components:{
      	first:Index
      },
      children:[{
			path:"/HomePage",
			components:{
				second:HomePage
			},
			children:[{
				path:"/thiefwas",
				components:{
					third:thiefwas
				}
			},
			{
				path:"/Motherson",
				components:{
					third:Motherson
				}
			},
			{
				path:"/Recommended",
				components:{
					third:Recommended
				}
			},
			{
				path:"/food",
				components:{
					third:food
				}
			}],
			redirect:"/Recommended"
			
		 },
	      {
			path:"/Classify",
			components:{
				second:Classify
			}
		 },
		 {
			path:"/StockOutKing",
			components:{
				second:StockOutKing
			}
		 },
		 {
			path:"/ShoppingCart",
			components:{
				second:ShoppingCart
			}
		 },
		 {
			path:"/PersonalCenter/:flag",
			components:{
				second:PersonalCenter
			}
		 }],
		 redirect:"/HomePage"
   },
   {
   	path:"/Shezhi",
	   	name:'Shezhi',
	   	components:{
	   		first:Shezhi
	   	}
   },
   {
	   	path:"/FeelingEmpty",
	   	name:'FeelingEmpty',
	   	components:{
	   		first:FeelingEmpty
	   	}
   }, 
   {
	   	path:"/settlement",
	   	name:'settlement',
	   	components:{
	   		first:settlement
	   	}
   },
   {
	   	path:"/search",
	   	name:'search',
	   	components:{
	   		first:search
	   	}
   },
   {
		  	path:"/AddNewAddress",
		  	name:"AddNewAddress",
		  	components:{
		  		first:AddNewAddress
	  		}
	 },
	 {
		  	path:"/AddDeliveryAddress",
		  	name:"AddDeliveryAddress",
		  	components:{
		  		first:AddDeliveryAddress
	  		}
	 },
   {
	   	path:"/Goodsdetails/:GoodsId",
	   	name:'Goodsdetails',
	   	components:{
	   		first:Goodsdetails
   		}
	},
	{
	   	path:"/Goodsname/:Brand",
	   	name:'Goodsname',
	   	components:{
	   		first:Goodsname
   		}
	},
	{
	   	path:"/Fansdiscuss",
	   	name:'Fansdiscuss',
	   	components:{
	   		first:Fansdiscuss
   		}
	},
	{
	   	path:"/Information",
	   	name:'Information',
	   	components:{
	   		first:Information
	   	}
  },
  {
	   	path:"/Headportrait",
	   	name:'Headportrait',
	   	components:{
	   		first:Headportrait
	   	}
  },
  {
	   	path:"/Nikename",
	   	name:'Nikename',
	   	components:{
	   		first:Nikename
	   	}
  },
  {
	   	path:"/Qrcode",
	   	name:'Qrcode',
	   	components:{
	   		first:Qrcode
	   	}
  },
  {
	   	path:"/Invitecode",
	   	name:'Invitecode',
	   	components:{
	   		first:Invitecode
	   	}
  },
  {
	   	path:"/Mobilephone",
	   	name:'Mobilephone',
	   	components:{
	   		first:Mobilephone
	   	}
  },
  {
	   	path:"/CsureOrder",
	   	name:'CsureOrder',
	   	components:{
	   		first:CsureOrder
	   	}
  },
  {
	   	path:"/Lookorder",
	   	name:'Lookorder',
	   	components:{
	   		first:Lookorder
	   	},
	   	children:[
	   		{
   				path:"/Order",
			   	components:{
			   		allorder:Order
				}
	   		},
	   		{
   				path:"/Unpaid",
			   	components:{
			   		allorder:Unpaid
				}
	   		},
	   		{
   				path:"/Dropshipping",
			   	components:{
			   		allorder:Dropshipping
				}
	   		},
	   		{
   				path:"/Forthegoods",
			   	components:{
			   		allorder:Forthegoods
				}
	   		},
	   		{
   				path:"/Thedeal",
			   	components:{
			   		allorder:Thedeal
				}
	   		}
	   	]
  }
 
  
  ]
})

